//
//  HMXMusicCell.m
//  音乐播放器
//
//  Created by apple on 16/7/17.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "HMXMusicCell.h"
#import "musicModel.h"
#import <SDWebImage/UIImageView+WebCache.h>

@interface HMXMusicCell ()

@property (weak, nonatomic) IBOutlet UILabel *albumnameL;

@property (weak, nonatomic) IBOutlet UILabel *songnameL;

@property (weak, nonatomic) IBOutlet UIImageView *imageBackView;


@end

@implementation HMXMusicCell

-(void)awakeFromNib
{
    [super awakeFromNib];
    
}

+(instancetype)viewFromNib{

    return [[NSBundle mainBundle]loadNibNamed:NSStringFromClass(self) owner:nil options:nil].lastObject;
    
}

-(void)setItem:(musicModel *)item
{
    _item = item;
    self.songnameL.text = item.songName;

    self.albumnameL.text = [NSString stringWithFormat:@"<%@>",item.albumName];

    [self.imageBackView sd_setImageWithURL:[NSURL URLWithString:item.picUrl ]];
}

@end
